<!DOCTYPE html>
<html>
<head>
<title>编辑会员卡</title>
<include file="Public/head"/>
<link href="__CSS__/card_control.css" rel="stylesheet">
<link href="__CSS__/section_card_notification.css" rel="stylesheet">
<!--<link href="<?php echo $this->RlStaticResource;?>plugins/css/dropzone/basic.css" rel="stylesheet">
<link href="<?php echo $this->RlStaticResource;?>plugins/css/dropzone/dropzone.css" rel="stylesheet"><link href="/Public/Admin/css/default_color.css" rel="stylesheet">-->
<link href="__CSS__/datepicker3.css" rel="stylesheet">

<style type="text/css">
#dataselect .input-group-btn,#ym-select .input-group-btn{width: 12%;}
#dataselect .input-sm ,#ym-select .input-sm{ border-radius: 7px; height:40px;}
#dataselect .btn-primary ,#ym-select .btn-primary{ margin-left: 20px; border-radius:4px;margin-bottom: 0px;}
#dataselect .input-group-addon,#ym-select .input-group-addon{border-radius: 7px;}
.ibox-content{ min-height:800px;}
.dropz .dz-image-preview{display:none;}
.uploadify-button {
    background-color: #44B549;
    color: #fff;
	text-align:center;
    font-weight:bold;
}
</style>
<!-- Data picker -->
<script src="__JS__/bootstrap-datepicker.js"></script>
<script type="text/javascript" src="/Public/static/uploadify/jquery.uploadify.min.js"></script>
</head>
<body>
	<div id="wrapper">
	<include file="Public/leftmenu"/>
		<div id="page-wrapper" class="gray-bg">
			<include file="Public/top"/>
			<div class="row wrapper border-bottom white-bg page-heading">
                <div class="col-lg-10">
                    <h2>编辑会员卡</h2>
                    <ol class="breadcrumb">
                        <li><a>Coupon</a></li>
                        <li><a href='?s=Coupon/index'>会员卡管理</a></li>
                        <li class="active"><strong>编辑</strong></li>
                    </ol>
                </div>
                <div class="col-lg-2"></div>
			</div>
			<div class="wrapper wrapper-content animated fadeIn">
				<div class="row" id="wrapper-content-list">
					<div class="col-lg-12">
						<div class="ibox float-e-margins">
							<div class="ibox-title">	
								<div class="alert alert-warning" style="font-size: 16px;"> 温馨提示：请仔细填写内容项</div>
							</div>
							<div class="ibox-content">
								<div class="group">

	<form id="form1"  class="media_edit"  method="POST" action="{:U()}" > 
									      
													 <input type="hidden" name="id" value="{$data[id]}"/>
										<div id="js_edit_area" class="media_edit_area" style="margin-top: 0px;">
											<div class="js_edit_content portable_editor to_left appmsg_editor econtent1" style="display: block;"> 
							
												<div class="inner"> 
													<div class="editor_section"> 
														<h3 class="title"> 会员卡信息 </h3> 

													
														<div class="appmsg_edit_item"> 
															<label class="frm_label" for=""> <strong class="title">持卡人</strong> </label> 
															<div class="input_submsg"> 
																<span class="frm_input_box"> <input type="text" placeholder="" class="frm_input valid" name="name" id="js_reduce_cost" value="{$data[name]}" /> </span> 
								
															</div> 
												
														</div> 								 

												
														<div class="appmsg_edit_item"> 
															<label class="frm_label" for=""> <strong class="title">手机号</strong> </label> 
															<div class="input_submsg"> 
																<span class="frm_input_box"> <input type="text" placeholder="" class="frm_input valid" name="mobile" id="js_reduce_cost" value="{$data[mobile]}" onkeyup="value=value.replace(/[^1234567890\.]+/g,'')"/> </span> 
															
															</div> 
												
														</div> 
														<div class="appmsg_edit_item"> 
															<label class="frm_label" for=""> <strong class="title">会员卡号</strong> <br /></label> 
															<div class="input_submsg group"> 
												<span class="frm_input_box"> <input type="text" placeholder="" class="frm_input" name="cardnum"  value="{$data[cardnum]}" onkeyup="value=value.replace(/[^\w\.\/]/ig,'')"/> </span> 
															
															</div> 
												
														</div> 

				<!--
																<div class="appmsg_edit_item"> 
															<label class="frm_label" for=""> <strong class="title">余额</strong> </label> 
															<div class="input_submsg"> 
																<span class="frm_input_box"><input disabled type="text" class="frm_input" value="{$data[money]}" onkeyup="value=value.replace(/[^1234567890]+/g,'')"/></span> 
																<span class="input_sub_msg">元</span> 
										
															</div> 
														</div> 
												
												<div class="appmsg_edit_item appmsg_edit_item_label_mult appmsg_input_submsg_item group"> 
															<label class="frm_label l" for=""> <strong class="title">积分<br /></strong> </label> 
															<div class="input_submsg l"> 
																<span class="frm_input_box"><input type="text" placeholder="" class="frm_input" value="{$data[point]}" disabled onkeyup="value=value.replace(/[^1234567890]+/g,'')"/></span> 
															
															</div> 
															
														</div> -->
													<div class="appmsg_edit_item textarea_item"> 
														<label class="frm_label" for=""> <strong class="title">认证状态</strong> </label> 
														<div class="frm_controls"> 
				                                             <select name="flag">
															    <option value="0" <eq name="data['flag']" value="0">selected</eq>>未认证</option>
																<option value="1" <eq name="data['flag']" value="1">selected</eq>>已经认证</option>
															 </select>
														</div> 
								
													</div> 


						
													</div> 
												</div> 
												<i style="margin-top: 0px;" class="arrow arrow_out"></i> 
												<i style="margin-top: 0px;" class="arrow arrow_in"></i> 
											</div> 
							


											

											
										
										</div> 
								
								</div> 
								<div class="tool_bar border tc">
									<button    id="submit" type="submit" class="btn btn-primary ajax-post" target-form="form-horizontal" style="height: 36px;"> 提交会员卡 </button>  					<button     type="button" class="btn btn-primary" target-form="form-horizontal" onclick="javascript:window.history.back();" style="height: 36px;"> 返回 </button>
								</div>	</form> 
							</div>
						</div>
                    </div>
                </div>
        	</div>
            <include file="Public/footer"/>
        </div>
	</div>
	<!-- DROPZddONE -->
   
    <script src="__JS__/icheck.min.js"></script>
    <script type="text/javascript">

        $(document).ready(function() { 
			$('#ymdatepicker input').datepicker({
                keyboardNavigation: false,
                forceParse: false,
				format: "yyyy-mm-dd",
                autoclose: true
            });


          $('.i-checks').iCheck({
               checkboxClass: 'icheckbox_square-green',
               radioClass: 'iradio_square-green',
           });


		});

		function cc(){
		      var times = $("input[name='total']").val();
			  if(times<1)
			   {
                 	swal({
        					  title: "创建失败",
        					  text: '请填写库存',
        					  type: "error"
    						}, function () {
        				
   						   });
						   return false;
			   }
			   		  var title = $("input[name='title']").html();    
			  if(title=='')
			   {
                 	swal({
        					  title: "创建失败",
        					  text: '请填卡券描述',
        					  type: "error"
    						}, function () {
        					  
   						   });
						   return false;
			   }

			   			   		  var starttime = $("input[name='starttime']").val(); 
								  var endtime = $("input[name='endtime']").val();    
			  if(starttime=='' || endtime=='')
			   {
                 	swal({
        					  title: "创建失败",
        					  text: '请设置卡券期限',
        					  type: "error"
    						}, function () {
        				
   						   });
						   	return false;
			   }


		   }


    </script>

</body>
</html>